package com.hx.common;

import com.hx.util.resource.ResourceUtil;
import com.hx.util.string.StringToNumberUtil;


/******************************
 *****************************************/
public class Constants {

    public static final String POWER = "power_";
    /* 用户默认皮肤 */
    public final static byte THEME_DEFAULT = 1;
    /* 用户默认密码 */
    public final static String PSWD_DEFAULT = "123456";
    /* 正常 */
    public final static byte USERSTATUS_ACTIVE = 1;
    /* 停用 */
    public final static byte USERSTATUS_STOP = 0;

    /* 超级管理员 */
    public final static byte USERTYPE_SUPER_ADMIN = 1;
    /* 管理员 */
    public final static byte USERTYPE_ADMIN = 2;
    /* CP */
    public final static byte USERTYPE_CP = 3;
    /* 物流 */
    public final static byte USERTYPE_TRANSPORT = 4;
    /* 店小二 */
    public final static byte USERTYPE_WATIER = 5;
    /* 商品分类层级拼接字符 */
    public static final String LEVEL_CONNECTOR = "-";
    //运费地址类型，省
    public final static byte EXPRESS_ADDR_TYPE_PROVINCE = 48;
    //运费地址类型，市
    public final static byte EXPRESS_ADDR_TYPE_CITY = 49;
    //运费地址类型，区/县
    public final static byte EXPRESS_ADDR_TYPE_COUNTY = 50;
    //物流公司状态，启用
    public final static int EXPRESS_STATUS_ON = 51;
    //物流公司状态，停用
    public final static int EXPRESS_STATUS_OFF = 52;
    /* lucene 检索目录  create  by   Alex.duan */
    public final static String INDEXDIR = ResourceUtil.getStrValue("indexDir");
    /* ftp server  create  by   Alex.duan */
    public final static String FTP_SERVER = ResourceUtil.getStrValue("ftp_url");
    /* ftp port  create  by   Alex.duan */
    public final static Integer FTP_PORT = StringToNumberUtil.toInteger(ResourceUtil.getStrValue("ftp_port"));
    /* ftp user  create  by   Alex.duan */
    public final static String FTP_USER = ResourceUtil.getStrValue("ftp_username");
    /* ftp password  create  by   Alex.duan */
    public final static String FTP_PASSWORD = ResourceUtil.getStrValue("ftp_userPasswd");
    /* ftp imgurl  create  by   Alex.duan */
    public final static String FTP_PRODUCTPATH = ResourceUtil.getStrValue("ftp_ProductPath");
    //广告FTP地址
    public final static String FTP_ADPATH = ResourceUtil.getStrValue("ftp_AdPath");
    //品牌FTP地址
    public final static String FTP_BRANDPATH = ResourceUtil.getStrValue("ftp_BrandPath");
    //用户FTP地址
    public final static String FTP_USERPATH = ResourceUtil.getStrValue("ftp_UserPath");
    //文章图片FTP地址
    public final static String FTP_ARTICLEPATH = ResourceUtil.getStrValue("ftp_ArticlePath");
    //普通订单
    public final static int ORDER_TYPES_NORMAL = 73;
    //商品所属的分类、属性、属性值
    public final static String SESSION_KEY_CHOOSED_NODE = "choosedNode";
}